package xerr

type ResponseSuccess struct {
	Code uint32      `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

// Success 正确返回
func Success(data interface{}) *ResponseSuccess {
	return &ResponseSuccess{200, "OK", data}
}
